<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><{$site_title}>管理中心</title>
<{include file="js.html"}>
<script>
	function allcheck(){
		$("input:[name=checkbox]").attr("checked",true);
	}
	/*function pwd(id){
		$.post(
			'admin_list.php?action=pwd',
			{id:id},
			function(data){
				if(data==1){
					alert('密码重置成功');
				}else{
					alert('密码重置失败');
				}
			}
		)
	}*/
	// function Del(){
	// 	var c=confirm("是否删除所选项？");
	// 	if(c==false){
	// 		return false;
	// 	}
	// 	var id="";
	// 	$("input:[name=checkbox]:[checked=true]").each(function(){
	// 		id+=$(this).val()+",";
	// 	})
	// 	$.post(
	// 		'admin_list.php?action=del',
	// 		{id:id},
	// 		function(data){
	// 			if(data=="1"){
	// 				$("input:[name=checkbox]:[checked=true]").parent().parent().remove();
	// 			}
	// 		}
	// 	)
	// }
</script>
</head>

<body>
<div class="box">
<div style="background:url(images/mainbj.jpg) repeat-x; line-height:31px; height:31px;">
<table width="262" height="31" border="0" cellpadding="0" cellspacing="0">
<tr><td width="41" align="center">
<img src="images/biao1.jpg" /></td>
<td width="221"><strong>当前位置</strong>：会员管理&gt;会员列表</td>
</tr></table>
</div>
<form action="" method="get">
<table class="lefttab" cellpadding="0" cellspacing="0">
<tbody>
<tr><td colspan="5"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;搜索</div>
</td></tr>
<tr>
  <td align="right" ><strong>账号</strong>：</td>
  <td width="" align="left">&nbsp;<input type="text" name="account" value="<{$search.account}>"/></td>
   <td align="right" ><strong>手机号</strong>：</td>
  <td width="" align="left">&nbsp;<input type="text" name="phone" value="<{$search.phone}>"/></td>
  <td colspan="4" width="300" align="left" >&nbsp;<input type="submit" value="搜索" ></td>
</tr>

</tbody></table>
</form>
<table width="849" cellpadding="0" cellspacing="0" class="lefttab">
<tr><td colspan="7"><div style="height:26px; text-align:left; line-height:26px; background:url(images/xbj1.jpg) repeat-x; border:1px solid #e9f5fa;font-weight:bold;">&nbsp;&nbsp;会员列表</div>
</td></tr>
<tr style="background:#dceff6;">
  <td><strong>选择</strong></td>
  <td><strong>账号</strong></td>
  <td><strong>头像</strong></td>
  <td><strong>手机</strong></td>
  <td><strong>邮箱</strong></td>
  <td><strong>注册时间</strong></td>
<td><strong>管理操作</strong></td>
</tr>
<{foreach item=res from=$user}>
<tr>
  <td align="center">
    &nbsp;<input type="checkbox" name="checkbox" value="<{$res.id}>" />
  </td>
  <td> <{$res.account}></td>
  <td> <img width="40" height="40" src="../upload/user/small/<{if $res.avatar!=''}><{$res.avatar}><{else}>avatar_default.jpg<{/if}>"></td>
  <td> <{$res.phone}></td>
  <td> <{$res.email}></td>
  <td style="color:#666666;"><{$res.regTime}></td>
  <td class="xiugai">
  	<a href="user_info.php?id=<{$res.id}>">查看</a>|
  	<a href="user_add.php?id=<{$res.id}>">修改</a>
  <!-- <a href="admin_list.php?action=pwd&id=<{$admin.id}>" onclick="return confirm('是否重置密码为123456？');">密码重置</a> -->
  </td>
</tr>
<{/foreach}>
</table>
  <div class="fenye" >
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;&nbsp;<a onclick='allcheck()' href="javascript:void(0)">全选</a> | <a onclick="return del('user_list.php?action=del')" href="javascript:void(0)">删除</a> &nbsp;&nbsp;&nbsp;&nbsp;<{$page}></p>
  </div>

</div>
</body>
</html>